<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <title>
	  <?php if (!include_slot('title')): ?>
        SMART Manager - Your best companion in managing projects 
      <?php endif; ?>
    </title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
    <table width="825" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F0F0F0">
  	  <thead>
        <tr>
          <td class="header"><a href="<?php echo url_for('@homepage') ?>"><img src="/images/logo.jpg" width="346" height="100" alt="SMART Manager" border="0"/></a></td>
        </tr>
      </thead>
      <tr>
        <td bgcolor="#FFFFFF">
        
         <?php 
	     if ($sf_user->isAuthenticated())
		 {
		    include_once('_menu.php'); 
		 ?>
         <table border="0" width="100%">
		   <tr>		     
			<td width="227" style="border-left:none; border-right:none"><p style="text-align: right">Welcome! <strong><?php echo $sf_user->getUsername(); ?></strong></td>
	       </tr>
         </table>
         <?php }?>
          <div id="content">
            <?php echo $sf_content ?>
          </div>
        </td>
      </tr>      
      <tfoot>
    	<tr align="center">
          <td class="footer"><span class="style3" style="line-height:20px;"><span class="style6"><a href="#">Home</a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href="#">Company Information</a>&nbsp;&nbsp;   |&nbsp;&nbsp; <a href="#">Latest News</a>&nbsp;&nbsp;   |&nbsp;&nbsp; <a href="#">Privacy</a><br />
          </span><span class="style3" style="line-height:20px;"><span class="style6"> <span class="style7">Copyright 2009 <a href="#"><strong>Smart Manager Software</strong></a> All Rights Reserved</span></span></span></span></td>
  		</tr>
      </tfoot>
   </table>
  </body>
</html>